package cn.dengta.webapp.im.enums;

import cn.dengta.common.model.ValueEnum;
import lombok.Getter;

@Getter
public enum GroupUserState implements ValueEnum<GroupUserState, Integer> {
	/** 正常 */
	NORMAL,
	/** 退出 */
	EXIT,
	/** 被踢 */
	KICK;

	public final Integer value;

	GroupUserState() {
		this.value = ordinal();
	}

	@Override
	public GroupUserState getValueOf(Integer value) {
		return value == null ? null : CACHE[value];
	}

	public static final GroupUserState[] CACHE = values();

}
